
<div ng-init="initOrgsUsers()" class="container ui grid">
    <h1>Registered Organizations</h1>
    <hr />
    <p>[[msg]]</p>


    <div class="two column row">
        <div class="form-group col-md-3 column">
           <input type="checkbox" ng-model="useFilter" ng-change="execFilter()"/>
           <label for="">Filter</label>
           <input type="text" ng-model="filter" ng-change="execFilter()" class="form-control"/>
        </div>
        <div class="form-group col-md-3">
           <label for="">Fitler By</label>
            <select ng-model="filterField" ng-change="execFilter()" class="form-control">
                <option value="Name" select>Name</option>
                <option value="Url">Web Site</option>
                <option value="Email">Email</option>
                <option value="UserEmail">User Email</option>
            </select>
           
        </div>
        <div class="form-group col-md-3 column">
           <label for="">From:</label>

           
        </div>
    </div>
    <div class="row" role="form">

        <div class="col-md-10 ">
            <div ng-repeat="o in orgs track by $index" class="">
                <org users="users" org="o" saveOrg="saveOrg" proxy="proxy" />
            </div>
        </div>

        <div class="col-md-2">
            <h3>Actions</h3>
            <ul>
            <li><a class="" ng-click="addOrg()">Add Org</a></li>
            <li><a class="" ng-click="$broadcast('openAllOrgs')">Open All</a></li>
            <li><a class="" ng-click="$broadcast('closeAllOrgs')">Close All</a></li>
                
            </ul>
            <div class="form-group">
                

            </div>
            <!-- 
                <button class="btn btn-default" onclick="alert('Saved')">Save All</button>
[[users]]
[[orgs]]
            -->

        </div>

    </div>
</div>
